Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GradientEmitter to support OMG-MEGA and OG-MAP-Elites #348

Merged
merged 55 commits into from
Sep 21, 2023
Merged

Add GradientEmitter to support OMG-MEGA and OG-MAP-Elites #348

merged 55 commits into from
Sep 21, 2023

Conversation

yutaizhou
Copy link
Contributor

Description

Implemented GradientEmitter from the official DQD repo, which is used to implement OMG-MEGA and OG-MAP-Elites.

TODO

  • ported over official DQD repo's implementation of GradientEmitter
  • added relevant pytests and documentation
  • benchmarked to achieve similar performance as the DQD paper

Questions

Status

  • I have read the guidelines in CONTRIBUTING.md
  • I have formatted my code using yapf
  • I have tested my code by running pytest
  • I have linted my code with pylint
  • I have added a one-line description of my change to the changelog in HISTORY.md
  • This PR is ready to go

@btjanaka btjanaka changed the title GradientEmitter for OMG-MEGA and OG-MAP-Elites Add GradientEmitter to support OMG-MEGA and OG-MAP-Elites Sep 2, 2023
Copy link
Member

@btjanaka btjanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yutaizhou, thank you for working on this implementation! I've left a couple of comments. Can you also merge the most recent master code into this branch so that you get pre-commit and all? Thanks!

HISTORY.md Outdated Show resolved Hide resolved
examples/sphere.py Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
@yutaizhou yutaizhou self-assigned this Sep 9, 2023
Copy link
Contributor Author

@yutaizhou yutaizhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly copy pasted from GradientArborescenceEmitter, but made the distinction that the GradientArborescence coefficients are not adaptive for GradientOperatorEmitter. let me know if that works!

ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
examples/sphere.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
examples/sphere.py Show resolved Hide resolved
Copy link
Member

@btjanaka btjanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. The remaining issue is making sure that the main docstring accurately reflects how the emitter operates.

examples/sphere.py Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
examples/sphere.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_emitter.py Outdated Show resolved Hide resolved
examples/sphere.py Show resolved Hide resolved
ribs/emitters/_gradient_operator_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_operator_emitter.py Outdated Show resolved Hide resolved
ribs/emitters/_gradient_operator_emitter.py Outdated Show resolved Hide resolved
Copy link
Contributor Author

@yutaizhou yutaizhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me know how this new docstring looks!

Copy link
Member

@btjanaka btjanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change remaining

@btjanaka
Copy link
Member

Thanks a ton for working on this PR Yutai! I left a minor comment; otherwise, this PR is good to go.

@yutaizhou yutaizhou merged commit 52a0590 into icaros-usc:master Sep 21, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants